package com.heima.media;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@MapperScan("com.heima.media.mapper")
@ComponentScan({"com.heima.media","com.heima.common","com.heima.minio","com.heima.aliyun"})
@EnableFeignClients("com.heima.client")//开启feign
@EnableAsync//开启异步调用
public class MediaApp {
    public static void main(String[] args) {
        SpringApplication.run(MediaApp.class, args);
    }
}